<?php

namespace CMBUBank\UBank\Request;

use CMBUBank\Http\RequestParameter;

class UBankBaseRequest extends RequestParameter
{

    /**
     * reqCode 业务参考号
     * @var string $reqCode
     */
    protected $reqCode = '';

    public function getReqCode(): string
    {
        return $this->reqCode;
    }

    public function setReqCode($reqCode): void
    {
        $this->reqCode = $reqCode;
    }

    protected function newReqCode():string
    {
        $this->reqCode = date('YmdHis') . substr(md5(uniqid()), 0, 16);
        return  $this->reqCode;
    }

}